#ifndef CANIG_H
#define CANIG_H

#include <QWidget>
//analysis singleton
#include <QMutex>
#include <QMutexLocker>
#include <QDebug>
#include"canigbus.h"
namespace Ui {
class canig;
}

class canig : public QWidget
{
    Q_OBJECT

public:
    //get instance
    static canig *getInstance();
    ~canig();

private slots:
    void on_pushButtonopenIG_clicked();

private:
    //make construct function mbmber private to protect multi construction.
    explicit canig(QWidget *parent = nullptr);
    //add static member variable to point unique entity.
    static canig* instance;
    Ui::canig *ui;
};

#endif // CANIG_H
